home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / shllutil.lha / shellutils-1.8 / man / Makefile.in < prev    next >
Makefile  |  1992-09-10  |  2KB  |  69 lines

  1. # Makefile for GNU shell utilities documentation.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = @srcdir@
  22. VPATH = @srcdir@
  23.  
  24. # Files to install on all systems
  25. MANFILES1 = basename.1 date.1 dirname.1 echo.1 env.1 expr.1 false.1 groups.1 \
  26. id.1 logname.1 pathchk.1 printenv.1 printf.1 sleep.1 tee.1 test.1 \
  27. true.1 tty.1 who.1 whoami.1 yes.1
  28. # Files to maybe install.
  29. MANFILES2 = nice.1 nohup.1 su.1 stty.1 uname.1
  30.  
  31. # Files to install.
  32. MANFILES = $(MANFILES1) @MAN@
  33.  
  34. DISTFILES = Makefile.in $(MANFILES1) $(MANFILES2)
  35.  
  36. all:
  37.  
  38. install: all
  39.     -cd $(srcdir); for f in $(MANFILES); do \
  40.     $(INSTALL_DATA) $$f $(mandir)/$(manprefix)`basename $$f 1`$(manext); \
  41.     done
  42.     @if test `../src/id -u` = 0; then \
  43.     echo you are root, so installing su.1; \
  44.     $(INSTALL_DATA) $(srcdir)/su.1 $(mandir)/$(manprefix)su.$(manext); \
  45.     else echo you are not root, so not installing su.1; fi
  46.  
  47. uninstall:
  48.     for f in $(MANFILES) su.1; do \
  49.     rm -f $(mandir)/$(manprefix)`basename $$f 1`$(manext); \
  50.     done
  51.  
  52. TAGS:
  53.  
  54. clean:
  55.  
  56. mostlyclean: clean
  57.  
  58. distclean: clean
  59.     rm -f Makefile
  60.  
  61. realclean: distclean
  62.     rm -f TAGS
  63.  
  64. dist:
  65.     ln $(DISTFILES) ../`cat ../.fname`/man
  66.  
  67. # Prevent GNU make v3 from overflowing arg limit on SysV.
  68. .NOEXPORT:
  69.